package com.atguigu.bigdata.spark.zzgcore.test

/**
 * @Classname SubTask
 * @Description TODO
 * @Date 2023/9/18 20:07
 * @Author zhuzhenguo
 */
class SubTask extends Serializable {
  var data: List[Int] = _

  var logic: (Int)=>Int = _

  def computer(): List[Int] = {
    data.map(logic)
  }

}
